local shoufeng = fk.CreateSkill {
  name = "lingling__shoufeng",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
  ["lingling__shoufeng"] = "收丰",
  [":lingling__shoufeng"] = "锁定技，你的手牌上限+3。你死亡时，杀死你的角色获得你所有牌。",
}

shoufeng:addEffect(fk.Death, {
  anim_type = "negative",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(shoufeng.name, false, true) and
      not player:isNude() and data.killer and not data.killer.dead
  end,
  on_use = function(self, event, target, player, data)
    player.room:obtainCard(data.killer, player:getCardIds("he"), false, fk.ReasonPrey, data.killer, shoufeng.name)
  end,
})

shoufeng:addEffect("maxcards", {
  correct_func = function (self, player)
    if player:hasSkill(shoufeng.name) then
      return 3
    end
  end,
})

return shoufeng
